package com.mlc.api;

import com.mlc.core.CoreConfiguration;
import com.mlc.data.DataConfiguration;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;

/**
 * @author FireWang
 * @date 2022/01/12
 */
@SpringBootApplication
@MapperScan("com.mlc.api")
@Import({CoreConfiguration.class, DataConfiguration.class})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    /**
     *  fix : No MyBatis mapper was found in '[com.mlc.api]' package. Please check your configuration
     */
    @Mapper
    public interface NoWarnMapper {
    }
}
